public class Keyboard {
    private final String type;
    private final boolean backlight;
    private final double weight;

    public Keyboard(String type, boolean backlight, double weight) {
        this.type = type;
        this.backlight = backlight;
        this.weight = weight;
    }

    public String getType() {
        return type;
    }

    public boolean isBacklight() {
        return backlight;
    }

    public double getWeight() {
        return weight;
    }

    public String toString() {
        String string = "Клавиатура " + getType();

        if (isBacklight()) {
            string = string + " с подсветкой";
        } else {
            string = string + " без подсветки";
        }

        return string;
    }
}
